@import './theme/index.css';
@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './btn.scss';
@import './sidebar.scss';
@import './element.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
  /*隐藏滚动条，当IE下溢出，仍然可以滚动*/
  -ms-overflow-style: none;
  /*火狐下隐藏滚动条*/
  overflow: -moz-scrollbars-none;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

ul,
li,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
  font-weight: normal;
  color: #303133;
}

h1 {
  font-size: 20px;
  line-height: 24px;
}

h2 {
  font-size: 18px;
  line-height: 22px;
}

h3 {
  font-size: 16px;
  line-height: 18px;
}

h4 {
  font-size: 14px;
  line-height: 16px;
}

h5 {
  font-size: 13px;
  line-height: 15px;
}

h6 {
  font-size: 12px;
  line-height: 14px;
}

.fl {
  float: left;
}

.fr {
  float: right;
}

.clearboth {
  clear: both;
}

.clearfix:after {
  content: "";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

.clearfix {
  *zoom: 1;
  /*ie6清除浮动的方式 *号只有IE6-IE7执行，其他浏览器不执行*/
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.inline {
  display: inline;
}

.inline-block {
  display: inline-block;
}

.block {
  display: block;
}

.fs-12 {
  font-size: 12px;
}

.fs-14 {
  font-size: 14px;
}

.fs-16 {
  font-size: 16px;
}

.fs-18 {
  font-size: 18px;
}

.fs-28 {
  font-size: 28px;
}

.fw {
  font-weight: bold;
}

.border-b {
  border-bottom: 1px solid;
}

.pointer {
  cursor: pointer;
}

// 单行溢出
.text-s-o {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

// 多行溢出
.text-m-o {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

// 空数据
.no-data {
  position: absolute;
  left: 50%;
  top: 30%;
  transform: translate(-50%, -50%);
}

// main-container global css
.app-container {
  padding: 30px;
  background-color: #FCFBFF;
}

// 列表搜索条件样式
.search-wrap {
  padding: 20px 30px;
  font-size: 0;
  border-bottom: 1px solid #EAEDF3;

  &-conditions {
    display: inline-block;

    .condition {
      margin: 5px 0;
    }

    .condition+.condition {
      margin-left: 30px;
    }
  }

  &-btn {
    display: inline-block;
    margin-left: 30px;
  }
}

.main-wrapper {
  margin-left: 30px;
  margin-right: 30px;
}

// 编辑页


// 编辑标题样式
.edit-title {
  font-size: 20px;
  line-height: 30px;
  color: #3E3F42;
  margin-bottom: 30px;
  color: #3E3F42;
}

// 编辑页表单样式
.edit-form {
  &-label {
    margin: 3px 0 7px;
  }

  .el-form-item {
    margin-bottom: 30px;
  }
}

// 图片上传
.avatar-uploader {
  width: 160px;
  height: 160px;
  background: rgba(247, 244, 244, 1);
  border-radius: 4px;
  border: 1px solid rgba(215, 214, 214, 1);

  & .el-upload {
    width: 100%;
    height: 100%;

    .el-image {
      width: 100%;
      height: 100%;
    }

    img.upload-icon {
      margin: 52px auto 10px;
    }

    span {
      color: #1665D8;
    }
  }
}

//el-select选择框margin-bottom
.el-scrollbar__wrap {
  margin-bottom: 0px !important
}

// tag
.ct-tag {
  display: inline-block;
  text-align: center;
  padding: 3px 17px;
  background: rgba(234, 237, 243, 1);
  border-radius: 2px;
  border: 1px solid rgba(234, 237, 243, 1);
  font-size: 14px;
  color: rgba(158, 160, 165, 1);
  cursor: pointer;

  &.active {
    border: 1px solid rgba(22, 101, 216, 1);
    color: rgba(22, 101, 216, 1);
  }

  &+.ct-tag {
    margin-left: 20px;
  }
}

.tags {
  background: rgb(79, 192, 141);
  padding: 0px 10px;
  height: 24px;
  border-radius: 12px;
  line-height: 24px;
  font-size: 15px;
  color: white;
  -webkit-text-size-adjust: none;
}

//输入框宽度
.input-width {
  width: 250px;
}

//border
.border-left {
  border-left: 1px solid black;
}

//底部按钮
.btu-bottom-fixed {
  position: fixed;
  width: 100%;
  left: 0px;
  bottom: 0px;
  height: 85px;
  text-align: center;
  background: white;
  margin: 0 auto;
  line-height: 85px;
}

//line-height
.line-height50 {
  line-height: 50px;
}

.line-height40 {
  line-height: 40px;
}

.line-height30 {
  line-height: 30px;
}

.line-height20 {
  line-height: 20px;
}

//padding
.pt30 {
  padding-top: 30px;
}

.pa30 {
  padding: 30px
}

.pa20 {
  padding: 20px;
}

.pb100 {
  padding-bottom: 100px
}

.pa10 {
  padding: 10px;
}

.pl10 {
  padding-left: 10px;
}

.pl30 {
  padding-left: 30px;
}

.pr10 {
  padding-right: 10px;
}

// width
.width100 {
  width: 100%
}

.width70 {
  width: 70%
}

.border-default {
  border: 1px solid #ccc;
}

.border {
  border: 1px solid #eaedf3;
}

//border-radius
.border-radius10 {
  border-radius: 10px;
}

.border-radius20 {
  border-radius: 20px;
}

.border-radius50 {
  border-radius: 50%;
}


// margin
.marginT40 {
  margin-top: 40px
}

.marginT30 {
  margin-top: 30px
}

.marginT20 {
  margin-top: 20px;
}

.marginT10 {
  margin-top: 10px;
}

.marginL50 {
  margin-left: 50px;
}

.marginL20 {
  margin-left: 20px;
}

.marginL10 {
  margin-left: 10px;
}

.marginLR5 {
  margin: 0 5px;
}

.margin30 {
  margin: 30px;
}

.margin5 {
  margin: 5px;
}

.margin10 {
  margin: 10px;
}

.marginB10 {
  margin-bottom: 10px;
}

.color-blue {
  color: #1E87F0;
}

.color-gray {
  color: #8c939d;
}

// 重置v-viewer的样式
.viewer-footer {
  display: none !important;
}


// 超出隐藏
.text-ellipsis-1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-ellipsis-2 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
